﻿using System.Web.Security;

namespace myFinance.Services.Admin
{
	public interface IMembershipService
	{
		int MinPasswordLength { get; }
		int MinNonAplhaNumerics { get; }

		bool ValidateUser(string userName, string password);
		MembershipCreateStatus CreateUser(string userName, string password, string email);
		bool ChangePassword(string userName, string oldPassword, string newPassword);
		bool ResetPassword(string userName, string adminUserName, out string newPassword);
		MembershipUserCollection GetAllUsers();
		MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords);
		MembershipUser GetUser(string userName, bool userIsOnline);
		void UpdateUser(MembershipUser user);
		bool DeleteUser(string userName, bool deleteAllRelatedData);
	}
}